﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameCore
{
    abstract class Figure
    {
        public Board.plcolor Color { get; private set; } //чья фигура
        public Position Pos {get; private set;} //позиция фигуры на доске
        
        public void ChangePosition(int newcol, int newrow)
        {
            Pos.ColIndex = newcol;
            Pos.RowIndex = newrow;
        }

        public abstract bool PossibleMoveTo(int col, int row, Board b);
    }
}
